#ifndef PALETTE_HPP_INCLUDED
#define PALETTE_HPP_INCLUDED

#define MAXWIDTH 20
#define MINWIDTH 0

#define LARGSPRITEG 8
#define LARGSPRITEC 8
#define LARGSPRITED 8
#define HAUTSPRITEPALETTE 11

class Palette{

    public:
    Palette(int widthParam,int y,sf::Image &sprite);
    ~Palette();
    int getWidth();
    int getWidthPx();
    void setPosition(float x);
    void setWidth(int width);
	sf::Sprite &getSprite();
	sf::IntRect getRect(int i);
	sf::FloatRect getPositionObj();
	int getWidthMiddlePx();
	int getHeightMiddlePx();

    private:
    int width;
	sf::Sprite sprite;
	sf::IntRect tabPosition[3];
	sf::FloatRect position;
};

#endif // PALETTE_HPP_INCLUDED
